package com.example.order.exeception;

import com.example.order.enums.ResultEnum;

public class OrderExeception extends RuntimeException{
    private Integer code;

    public OrderExeception(Integer code,String message) {
        super(message);
        this.code = code;
    }

    public OrderExeception(ResultEnum resultEnum) {
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
    }
}
